var express = require('express');
var router = express.Router();
const CaptchaServer = require("../service/captcha-service")

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index');
});

//生成验证码的路由
router.get('/gen_code',CaptchaServer.gen);

//校验验证码的路由
router.get('/verify',CaptchaServer.verify)
module.exports = router;
